package org.anderground.editor.edits;

import org.anderground.core.model.Line;

public class SetLineColorAction extends AbstractAction<Line, Integer> {

	public SetLineColorAction(Line object, Integer value) {
		super(object, value);
	}

	@Override
	protected Integer getCurrentValue() {
		return getTarget().getColor();
	}

	@Override
	protected void setCurrentValue(Integer value) {
		Editor.edit(getTarget()).setColor(value);

	}

}
